package com.itheima.zuoye.d02;

public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat("tom", 23, "man");
        Cat cat1 = new Cat("tom", 23, "man");
        System.out.println( cat);
        System.out.println( cat1);

        if (cat.equals(cat1)) {
            System.out.println("cat和cat1相同");
        } else {
            System.out.println("cat和cat1不相同");

        }
    }
}
